import request from '/@/utils/request';

// 预警配置列表
export function WarningRuleFactGetPagedList(params?: object) {
	return request({
		url: '/api/WarningRuleFact/GetPagedList',
		params,
	});
}
// 新增预警配置
export function WarningRuleFactCreate(data: any) {
	return request({
		url: 'api/WarningRuleFact/Create',
		method: 'post',
		data,
	});
}

// 编辑预警配置
export function WarningRuleFactUpdate(data: any, id: string) {
	return request({
		url: `api/WarningRuleFact/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除预警配置
export function WarningRuleFactDelete(data: any) {
	return request({
		url: 'api/WarningRuleFact/BatchDelete',
		method: 'post',
		data,
	});
}
